// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__949A7A32_0A09_4473_A334_D0A158F04054__INCLUDED_)
#define AFX_MAINFRM_H__949A7A32_0A09_4473_A334_D0A158F04054__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CMainFrame : public CMDIFrameWnd
{
	DECLARE_DYNAMIC(CMainFrame)
public:
	CMainFrame();

// Attributes
public:

// Operations
public:
    CString ReadWord(CString cstring, int &Frist);
    double countsr(double record[], double a1);
    bool doublequal(double scount, double ccount);
    double Difangle(double record[], double angle, int num);
    int rint(double w);
    bool readdata(double record[], int countnum, CString Readline, int &Frist);
    bool readCdata(CString record[], int countnum, CString Readline, int &Frist);
    bool readIdata(int record[],int countnum, CString Readline,int &Frist);
    double abst(double a);
    CString OutputTitile(CString projectname, CString countname);
    CString COutputname();
    double exactthree(double ddata);
    bool CsystemInit(CString Readline,double &g1,double &sh,
		             int &Frist,int i,double r4[]);

    bool ConfluxRec(double Record[], double &Pipewind, double &x, 
		            double &a1, double &Staticre);
    bool StrapipeRec(double Record[], double &a1, double &Staticre);
    bool Equalareasw(double Record[], double &x, double &a1, double &Staticre);
    bool Count15Rec(double Record[], double &a1, double &Staticre);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // control bar embedded members
	CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;

// Generated message map functions
protected:
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnResistCount();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
  CString  Cprojectname[4];
  CString  CEprojectname[4];
  int numrecord[24];
  double demedium[4];
  double Splane[3];
  double Spyramid[3];
  double Rsyphon[5];
  double Spyramid2[4];
  double b5[6];
  double b6[6];
  double b7[6];
  double b8[6];
  double b9[6];
  double b10[6];
  double b11[6];
  double e1[6][2];
  double e3[9];
  double e2[11][6];
  double e4[4];
};


const double EPSINON = 0.00001;
const double PI = 3.1416;


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAINFRM_H__949A7A32_0A09_4473_A334_D0A158F04054__INCLUDED_)
